package com.xjrsoft.module.customerTwo.EMP.t_water_meter.mapper;

import com.xjrsoft.module.customerTwo.EMP.t_water_meter.entity.TWaterMeter;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 *  Mapper 接口
 *
 * @author dongxinhang
 * @since 2023-08-02
 */
public interface TWaterMeterMapper extends BaseMapper<TWaterMeter> {

    /**
     * 批量新增或修改
     * @param list
     * @return
     */
    int updateOrInsertBatch(@Param("list")List<TWaterMeter> list);

    /**
     * 处理自增序列不连续
     * @return
     */
    int alterAutoIncrement();

    /**
     * 获取电表异常数据
     * @return
     */
    List<Map> getWaringData();
}
